﻿using System;
using System.Linq;

namespace WWW
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Accounts.DataBind();
            analyticsGrid.DataBind();
            analyticsGraph4.StartDate = DateTime.Now.AddDays(-7);
            analyticsGraph4.EndDate = DateTime.Now;
        }

        protected void Rebind(object sender, EventArgs e)
        {
            analyticsGraph.Metrics = Metrics.SelectedItems.ToArray();
            analyticsGraph.Dimensions = Dimensions.SelectedItems.ToArray();
            analyticsGraph.DataBind();
        }
    }
}
